<?php
include("connection/connection.php");
if(isset($_POST['submit']))
{
$str=$_POST['str'];
$asset_id=$_POST['asset_id'];
$Discharge=$_POST['Discharge'];
$Head=$_POST['Head'];
$Power=$_POST['Power'];
$Status=$_POST['Status'];

$qr="update tbl_dtls_q1_asset set asset_location = '$_REQUEST[Location]' , asset_latitude = '$_REQUEST[Latitude]' , asset_longitude = '$_REQUEST[Longitude]' , asset_status='$Status',asset_discharge='$Discharge',asset_head='$Head',asset_power='$Power' where id='$asset_id'";
$res=mysql_query($qr);
//echo mysql_affected_rows();
//echo mysql_error();
if($res)
{
header("location:q1_rwss_edit.php");
}
}		
?>